﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Template.master" AutoEventWireup="true"
    CodeFile="Register.aspx.cs" Inherits="Register" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div align="left">
        <h1>
            Registration forms<h1>
    </div>
    <hr />
    <div class="clear">
    </div>
    <table border="0" cellpadding="0" cellspacing="0">
        <tr>
            <th align="center" colspan="3">
                <asp:Label ID="lblMessage" runat="server" ForeColor="#CC0000"></asp:Label>
            </th>
        </tr>
        <tr>
            <th align="left">
                Username:
            </th>
            <td>
                <asp:TextBox ID="txtUserName" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
            <td>
                
                &nbsp;&nbsp;
                
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please fill in this field."
                    ControlToValidate="txtUserName" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th align="left">
                Password:
            </th>
            <td>
                <asp:TextBox ID="txtPassword" CssClass="inp-form" runat="server" 
                    TextMode="Password"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please fill in this field."
                    ControlToValidate="txtPassword" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th align="left">
                Password confirm:
            </th>
            <td>
                <asp:TextBox ID="txtConPass" CssClass="inp-form" runat="server" 
                    TextMode="Password"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                    ControlToValidate="txtConPass" Display="Dynamic" ErrorMessage="Password confirm invalid."
                    SetFocusOnError="True"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Please fill in this field."
                    ControlToValidate="txtConPass" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th align="left">
                Full name:
            </th>
            <td>
                <asp:TextBox ID="txtFulname" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Please fill in this field."
                    ControlToValidate="txtFulname" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th align="left">
                Address:
            </th>
            <td>
                <asp:TextBox ID="txtAddress" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Please fill in this field."
                    ControlToValidate="txtAddress" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th align="left">
                Email address:
            </th>
            <td>
                <asp:TextBox ID="txtEmail" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Please fill in this field."
                    ControlToValidate="txtEmail" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Email address invalid." 
                    SetFocusOnError="True" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <th align="left">
                Email confirm:
            </th>
            <td>
                <asp:TextBox ID="txtConEmail" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;
                <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="txtEmail"
                    ControlToValidate="txtConEmail" Display="Dynamic" ErrorMessage="Email confirm invalid."
                    SetFocusOnError="True"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="Please fill in this field."
                    ControlToValidate="txtConEmail" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th align="left">
                Phone number:
            </th>
            <td>
                <asp:TextBox ID="txtPhone" CssClass="inp-form" runat="server"></asp:TextBox>
            </td>
            <td>
                &nbsp;&nbsp;
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Please fill in this field."
                    ControlToValidate="txtPhone" Display="Dynamic" SetFocusOnError="True"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <th>
            </th>
            <td>
            <div class="clear_buttom"></div>
                <asp:Button ID="btnSubmit" runat="server" CssClass="form-register" 
                    onclick="btnSubmit_Click" />
                <asp:Button ID="btnCancel" runat="server" CssClass="form_cancel" 
                    CausesValidation="False" PostBackUrl="~/Default.aspx" />
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
